package com.hmall.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.item.pojo.Item;
import org.apache.ibatis.annotations.Select;

public interface ItemMapper extends BaseMapper<Item> {

    //上行锁
    @Select("select * from tb_item where id=#{id} for update")
    Item selectByIdForUpdate(Long itemId);
}
